//素材管理
import request  from "@/utils/request.js"

//获取图片素材
export const getImages=(params)=>{
    return request({
        method:'GET',
        url:`/mp/v1_0/user/images`,
        params,
        
    })
}
//收藏指定图片
export const collectImages=(id,collect)=>{
    return request({
        method:'PUT',
        url:`/mp/v1_0/user/images/${id}`,
        data:{
            collect
        }
        
    })
}

//删除指定图片
export const deleteImages=(id)=>{
    return request({
        method:'DELETE',
        url:`/mp/v1_0/user/images/${id}`,
      
        
    })
}